Skip to content

fix: use only start date for RDATE VALUE=PERIOD comparisons - #4

Merged
runely merged 1 commit into
runely:mainfrom
KristjanESPERANTO:period
Jun 18, 2026
Merged

fix: use only start date for RDATE VALUE=PERIOD comparisons#4
runely merged 1 commit into
runely:mainfrom
KristjanESPERANTO:period

Conversation

@KristjanESPERANTO

Copy link
Copy Markdown
Contributor

When parsing RDATE;VALUE=PERIOD (formatted as start/end), the filter was comparing the entire raw string - including the /end part - against the max limit. This could cause the filter to incorrectly drop a valid event because the /end part causes the comparison to return the wrong result.

This is certainly an edge case, but still annoying if you're affected by it.

The Fix:
To check if an event falls into our time window, we only need its start date. The filter now strips everything after the / and compares the start date only.

@runely
runely merged commit bd2a7ea into runely:main Jun 18, 2026
1 check passed
@runely

runely commented Jun 18, 2026

Copy link
Copy Markdown
Owner

This fix is released in v1.0.3 🙂

@KristjanESPERANTO
KristjanESPERANTO deleted the period branch August 3, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants